﻿<div class="home">
<div class="text-center">
    <div class="vertical-space"></div>
    
    <h1 style="font-weight: bold;">DownGit</h1>
    <div class="center-row"></div>
    <h4>GtiHub 仓库文件夹下载</h4>
    
    <div class="vertical-space"></div>
    
    <div class="col-md-6 center-row">
        <input name="url" type="url" placeholder="贴入要下载的 GitHub 仓库文件夹地址" class="form-control" ng-model="url" ng-keypress="catchEnter($event)" />
        <div class="center-row"></div>
        <p class="text-muted">本工具可以单独下载某个 GitHub 仓库中的文件夹，而无需将整个仓库下载下来。使用方法：打开 Github 仓库，点击进入要下载的文件夹，然后复制浏览器地址栏的地址，粘贴到上面的输入框中，点击“下载”即可</p>
    </div>
    
    <div class="btn-group center-row">
        <button type="button" class="btn btn-default" ng-click="createDownLink()">创建下载外链</button>
        <button type="button" class="btn btn-default" ng-click="download()">直接下载</button>
    </div>
    
    <div ng-show="isProcessing.val">
        <div class="vertical-space"></div>
        <img class="processing-img" src="res/images/processing.gif" />
        <p>下载文件中 ({{downloadedFiles.val}} / {{totalFiles.val}})</p>
    </div>
    
    <div class="col-md-6 center-row" ng-show="downUrl">
        <div class="vertical-space"></div>
        <textarea class="form-control download-link-box" ng-model="downUrl"></textarea>
    </div>
    
    <div class="vertical-space"></div>
    
    <div class="footer">
        <a target="_blank" href="https://github.com/MinhasKamal/DownGit">DownGit</a> 
        by 
        <a target="_blank" href="https://github.com/MinhasKamal">Minhas Kamal</a> / 
        Localization by 
        <a target="_blank" href="http://huhu_han.gitee.io/blog/">huhuhan</a> 
    </div>
</div>
</div>
